module.exports = app => {
    const { STRING, INTEGER } = app.Sequelize;
  
    const Banner = app.model.define('banner', {
      id: {
        type: INTEGER,
        primaryKey: true,
        allowNull: false,
        autoIncrement: true,
      },
      title: {
        type: STRING(255),
        allowNull: true,
      },
      linkUrl: {
        type: STRING(255),
        allowNull: true,
      },
      bannerUrl: {
        type: STRING(255),
        allowNull: false,
      }
    }, {
        timestamps: true,
        underscored: false,
    });
  
    return Banner;
  };
  